package com.example.zx.theline.usercenter;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.zx.theline.R;

import base.BaseActivity;

public class SupportActivity extends BaseActivity implements View.OnClickListener{

    TextView leftTextView,prev,centerTextView,next,rightTextView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_support);
        InitView();
        InitData();
        InitListen();
    }

    @Override
    protected void InitView() {
        leftTextView= (TextView) findViewById(R.id.leftTextView);
        prev= (TextView) findViewById(R.id.prev);
        centerTextView= (TextView) findViewById(R.id.centerTextView);
        next= (TextView) findViewById(R.id.next);
        rightTextView= (TextView) findViewById(R.id.rightTextView);

        rightTextView.setVisibility(View.INVISIBLE);
    }

    @Override
    protected void InitData() {
        centerTextView.setText("技术支持");
    }

    @Override
    protected void InitListen() {
        leftTextView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.leftTextView:
                finish();
                break;
        }
    }
}
